<?php /*a:3:{s:75:"C:\Users\602\PhpstormProjects\phpzhengshiban\app\index\view\member.add.html";i:1593994054;s:36:"../app/index/view/public.header.html";i:1593994054;s:36:"../app/index/view/public.footer.html";i:1593994054;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Admin</title>
    <script type="text/javascript" src="/plug/layui/layui.js"></script>
    <script type="text/javascript" src="/static/script/common.js"></script>
    <script type="text/javascript" src="/static/script/moment.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/plug/awesome/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="/plug/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/common.css" />
</head>
<body>

        <form class="layui-form layui-form-pane" style="padding: 16px">
            <div class="layui-form-item">
                    <label class="layui-form-label" for="mobile">手机号码</label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="mobile" id="mobile" type="text" placeholder="请输入手机号码" autocomplete="off" lay-verify="required"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="name">姓名</label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="name" id="name" type="text" placeholder="请输入姓名" autocomplete="off" lay-verify="required"/>
                    </div>
                </div>

            <div class="layui-form-item">
                <label class="layui-form-label" for="password">密码</label>
                <div class="layui-input-block">
                    <input class="layui-input" name="password" id="password" type="text" placeholder="请输入密码" autocomplete="off" lay-verify="required"/>
                </div>
            </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="age">年龄</label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="age" id="age" type="text" placeholder="请输入年龄" autocomplete="off" lay-verify="required"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" type="submit"  lay-filter="submit" lay-submit>立即提交</button>
                        <button class="layui-btn" type="reset">重置</button>
                    </div>
                </div>
        </form>
<script type="text/javascript">
    layui.use(["layer", "form", "table", "upload", "element", "laydate"], function () {
        layui.form.on('submit(submit)',function (data) {
            postNormal("http://127.0.0.1/index.php/index/member/add/",{
                mobile:data.field.mobile,
                name:data.field.name,
                age:data.field.age,
                password:data.field.password
            },
                function (result) {
                /*console.log(result);*/
                closeAll();
                if(result.code!=='1'){
                    showMessage(result.msg);
                    return;
                }
                showMessage("添加成功~");
            })
             return false;
        });
    });
</script>
</body>
</html>

